#include <iostream>
using namespace std;

int main(){
    double li;
    double t=0;
    cin >> li;
    if(li > 1000000){
        t+=(li-1000000)*0.01;
        li=1000000;
    }
    if(li > 600000){
        t+=(li-600000)*0.015;
        li=600000;
    }
    if(li > 400000){
        t+=(li - 400000)*0.03;
        li = 400000;
    }
    if(li > 200000){
        t+=(li-200000)*0.05;
        li = 200000;
    }
    if(li > 100000){
        t += (li-100000)*0.04;
        li = 100000;
    }
    t += li*0.05;
    cout << t << endl;
}




A *q = new A(3) 编译报错，原因是 A 的构造函数是私有的